package cn.com.smart.flow.service;

import cn.com.smart.flow.bean.entity.TFLowTask;
import cn.com.smart.flow.dao.FLowTaskDao;
import cn.com.smart.service.impl.MgrServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Copyright
 *
 * @author chenwenchao
 * @date 2019/4/2
 * Description:
 */
@Service
public class FlowTaskService  extends MgrServiceImpl<TFLowTask> {
    @Autowired
    private FLowTaskDao taskDao;

    public boolean updateTask(TFLowTask task){
       boolean result= taskDao.saveOrUpdate(task);
       return  result;
    }

    public TFLowTask getTask(String id){
        TFLowTask tfLowTask=taskDao.find(id);
        return  tfLowTask;
    }
}
